package cbh.tool.demo;

import cbh.tool.mybatis.annotation.IgnoreColumn;
import cbh.tool.mybatis.annotation.MyColumnName;
import cbh.tool.mybatis.annotation.MyTable;
import cbh.tool.mybatis.annotation.MybatisPropertits;

/**
 * Created by hx-pc on 16-1-18.
 */
@MyTable(tableName = "testTable")
@MybatisPropertits(nameSpace = "cbh.tool.dao",idName = "id",typeName = "type")
public class TestBean {

    @MyColumnName(columnName = "id",isPrimary = true)
    private Integer id;

    @MyColumnName(columnName = "name_")
    private String name;

    private String value;

    //@IgnoreColumn
    private String hide;

    public TestBean(String s, String xiaoji) {
        this.name = s;
        this.value = xiaoji;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getHide() {
        return hide;
    }

    public void setHide(String hide) {
        this.hide = hide;
    }
}
